package com.wqiuqiu.gulimall.cart.vo;


import com.wqiuqiu.common.excption.BizCodeEnume;
import jdk.internal.util.xml.impl.ReaderUTF8;

import java.math.BigDecimal;
import java.util.List;

/**
 * 购物项
 */
public class CartItem {
    private Long skuId;

    private boolean checked = true;
    private String skuName;

    private String skuImage;

    private List<String> attrs;

    private BigDecimal price;

    private int count;

    private BigDecimal totalPrice;

    public Long getSkuId() {
        return skuId;
    }
    public boolean getChecked(){
        return checked;
    }

    public String getSkuImage() {
        return skuImage;
    }

    public String getSkuName() {
        return skuName;
    }

    public List<String> getAttrs() {
        return attrs;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public int getCount() {
        return count;
    }

    public BigDecimal getTotalPrice() {
        return getPrice().multiply(new BigDecimal(getCount()));
    }

}
